#include <stdio.h>
#include <string.h>
int main()
{
    char a[100];
    while(scanf("%s",a)!=EOF){
        for(int i=0;i<strlen(a);i++){
            if(a[i]=='Z') a[i]='a';
            else if(a[i]>='A'&&a[i]<'Z') a[i] +=33;
            else if(a[i]>='a'&&a[i]<='c') a[i]='2';
            else if(a[i]>'c'&&a[i]<'g') a[i]='3';
            else if(a[i]>'f'&&a[i]<'j') a[i]='4';
            else if(a[i]>'i'&&a[i]<'m') a[i]='5';
            else if(a[i]>'l'&&a[i]<'p') a[i]='6';
            else if(a[i]>'o'&&a[i]<'t') a[i]='7';
            else if(a[i]>'s'&&a[i]<'w') a[i]='8';
            else if(a[i]>'v') a[i]='9';
        }
        printf("%s\n",a);
    }
    return 0;
}
